package edu.kit.csl.tests.pisa;

/*
This file is part of the PISA Alignment Tool.

Copyright (C) 2013
Karlsruhe Institute of Technology
Cognitive Systems Lab (CSL)
Felix Stahlberg

PISA is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

PISA is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PISA. If not, see <http://www.gnu.org/licenses/>.
*/

import edu.kit.csl.pisa.datatypes.Alignment;
import edu.kit.csl.pisa.datatypes.Corpus;
import edu.kit.csl.pisa.datatypes.Dictionary;
import edu.kit.csl.pisa.datatypes.Sentence;
import edu.kit.csl.pisa.datatypes.SentencePair;

/**
 * Represents the play corpus in the Kevin Knight paper.
 */
public class KnightCorpus extends Corpus {

	/**
	 * Sole constructor.
	 */
	public KnightCorpus() {
		super();
		SentencePair pair1 = new SentencePair(
			new Sentence("b c", Dictionary.getSingleton(Dictionary.SRC_DICT)),
			new Sentence("x y", Dictionary.getSingleton(Dictionary.TRGT_DICT)),
			"first");
		SentencePair pair2 = new SentencePair(
			new Sentence("b", Dictionary.getSingleton(Dictionary.SRC_DICT)),
			new Sentence("y", Dictionary.getSingleton(Dictionary.TRGT_DICT)),
			"second");

		short a11[] = {0, 1};
		boolean boundaries1[] = {true, true};
		pair1.addAlignment(new Alignment(2, a11, boundaries1), 1);
		
		short a12[] = {1, 0};
		pair1.addAlignment(new Alignment(2, a12, boundaries1), 1);
		
		short a2[] = {0};
		boolean boundaries2[] = {true};
		pair2.addAlignment(new Alignment(1, a2, boundaries2), 1);
		
		this.add(pair1);
		this.add(pair2);
	}
}
